package com.example.fresheveryday.service.Impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.fresheveryday.po.Comment;
import com.example.fresheveryday.po.Viewhistory;
import com.example.fresheveryday.mapper.ViewhistoryMapper;
import com.example.fresheveryday.service.ViewhistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Service
public class ViewhistoryServiceImpl extends ServiceImpl<ViewhistoryMapper, Viewhistory> implements ViewhistoryService {
    @Autowired
    ViewhistoryMapper viewhistoryMapper;
    @Override
    public IPage<Viewhistory> getHis(IPage<Viewhistory> page, @Param("ew") Wrapper wrapper) {
        return viewhistoryMapper.getHis(page,wrapper);
    }

    @Override
    public int countByConditions(Wrapper wrapper) {
        return viewhistoryMapper.countByConditions(wrapper);
    }
}
